package com.school.empsys.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 员工工资
 */
public class EmpSalary extends BaseEntity<Integer> {

    /**
     * 员工id
     */
    private Integer userId;

    /**
     * 工资时间
     */
    private String wageTime;

    /**
     * 出勤天数
     */
    private Integer attendanceDays;

    /**
     * 请假天数
     */
    private Integer leaveDays;

    /**
     * 缺席天数
     */
    private Integer absenceDays;

    /**
     * 实际工资
     */
    private BigDecimal actualSalary;

    /**
     * 基本工资(底薪)
     */
    private BigDecimal basicSalary;

    /**
     * 奖金
     */
    private BigDecimal bonus;

    /**
     * 罚款
     */
    private BigDecimal fines;

    /**
     * 提成：职位为销售才有
     */
    private BigDecimal commission;

    private User user;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getWageTime() {
        return wageTime;
    }

    public void setWageTime(String wageTime) {
        this.wageTime = wageTime;
    }

    public Integer getAttendanceDays() {
        return attendanceDays;
    }

    public void setAttendanceDays(Integer attendanceDays) {
        this.attendanceDays = attendanceDays;
    }

    public Integer getLeaveDays() {
        return leaveDays;
    }

    public void setLeaveDays(Integer leaveDays) {
        this.leaveDays = leaveDays;
    }

    public BigDecimal getActualSalary() {
        return actualSalary;
    }

    public void setActualSalary(BigDecimal actualSalary) {
        this.actualSalary = actualSalary;
    }

    public BigDecimal getBasicSalary() {
        return basicSalary;
    }

    public void setBasicSalary(BigDecimal basicSalary) {
        this.basicSalary = basicSalary;
    }

    public BigDecimal getBonus() {
        return bonus;
    }

    public void setBonus(BigDecimal bonus) {
        this.bonus = bonus;
    }

    public BigDecimal getFines() {
        return fines;
    }

    public void setFines(BigDecimal fines) {
        this.fines = fines;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getAbsenceDays() {
        return absenceDays;
    }

    public void setAbsenceDays(Integer absenceDays) {
        this.absenceDays = absenceDays;
    }
}